package com.itshizhan.itjidancideveloper.utils;

import java.time.Instant;
import java.time.ZoneId;
import java.time.format.DateTimeFormatter;
import java.util.Locale;

public  class DateUtils {
    public static String timestamp(){
        return DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss.SSSSSS", Locale.CHINA)
                .withZone(ZoneId.of("+8"))
                .format(Instant.now());
    }

    public static void main(String[] args) {
        String userId = "821875047533641700";
        Long u = Long.valueOf(userId);
        System.out.println(u);
    }
}
